package com.handpay.zztong.hp.nocardpay;

import android.os.Parcel;

import com.handpay.zztong.hp.bean.ResponseBean;

import java.util.List;

/**
 * Created by lyang on 2017/7/12.
 */

public class MerchantTypeList extends ResponseBean {

    /**
     * items : 2
     * list : [{"merchantTypeName":"D79A4A29FCD4DF550182086DCF6001C358E5C2DCAB9211A0","merchantTypeCode":"34BBE5C099BE13BD"},{"merchantTypeName":"95906B937EF3984122BFC4BEFF14D9F997D3FFEE8026245E","merchantTypeCode":"8DEDEF1B975F6AFA"}]
     */

    private String items;
    private List<MerchantType> list;

    public String getItems() {
        return items;
    }

    public void setItems(String items) {
        this.items = items;
    }

    public List<MerchantType> getList() {
        return list;
    }

    public void setList(List<MerchantType> list) {
        this.list = list;
    }

    public static class MerchantType implements android.os.Parcelable {
        /**
         * "merchantTypeCode": "89426C004D5AC93F",
         * "merchantTypeFee": "0F216D8FA2074CE3",
         * "merchantTypeFeeIncrement": "3179F839B3AD6B33",
         * "merchantTypeName": "2B15D9FC66B344431FDB3EDBE2A9BAF9"
         */

        private String merchClassName;
        private String merchClassId;
        private String merchClassFeeRate;
        private String merchClassFeeIncrement;

        public String getMerchClassName() {
            return merchClassName;
        }

        public void setMerchClassName(String merchClassName) {
            this.merchClassName = merchClassName;
        }

        public String getMerchClassId() {
            return merchClassId;
        }

        public void setMerchClassId(String merchClassId) {
            this.merchClassId = merchClassId;
        }

        public String getMerchClassFeeRate() {
            return merchClassFeeRate;
        }

        public void setMerchClassFeeRate(String merchClassFeeRate) {
            this.merchClassFeeRate = merchClassFeeRate;
        }

        public String getMerchClassFeeIncrement() {
            return merchClassFeeIncrement;
        }

        public void setMerchClassFeeIncrement(String merchClassFeeIncrement) {
            this.merchClassFeeIncrement = merchClassFeeIncrement;
        }


        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.merchClassName);
            dest.writeString(this.merchClassId);
            dest.writeString(this.merchClassFeeRate);
            dest.writeString(this.merchClassFeeIncrement);
        }

        public MerchantType() {
        }

        protected MerchantType(Parcel in) {
            this.merchClassName = in.readString();
            this.merchClassId = in.readString();
            this.merchClassFeeRate = in.readString();
            this.merchClassFeeIncrement = in.readString();
        }

        public static final Creator<MerchantType> CREATOR = new Creator<MerchantType>() {
            @Override
            public MerchantType createFromParcel(Parcel source) {
                return new MerchantType(source);
            }

            @Override
            public MerchantType[] newArray(int size) {
                return new MerchantType[size];
            }
        };
    }
}